package com.atguigu.ssyx.client.search;

import com.atguigu.ssyx.model.search.SkuEs;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * feign远程调用,用于商品ES查询远程调用
 */
@Api(tags = "商品ES查询远程调用接口")
@FeignClient("service-search")
@RequestMapping("/api/search/sku")
public interface SkuFeignClient {

    // 获取爆款商品
    @ApiOperation("获取爆款商品")
    @GetMapping("inner/findHotSkuList")
    public List<SkuEs> findHotSkuList();
}
